package com.itheima.runnable;

//实现 Runnable接口
public class MyRunnable implements Runnable{
    //重写run()方法，也只有run()方法
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
